import request from '@/utils/request'
//  新增学科接口
import store from '@/store/modules/user'

export const subjectAdd = (data) => {
  return request({
    url: '/subject/add',
    method: 'post',
    data
  })
}
//  学科列表

export const subjectList = (params) => {
  return request({
    url: '/subject/list',
    needLogin: 'true',
    params
  })
}

// 编辑学科
export const subjectEdit = (data) => {
  return request({
    url: '/subject/edit',
    needLogin: 'true',
    method: 'post',
    data
  })
}
// 删除学科

export const subjectRemove = (data) => {
  return request({
    url:'/subject/remove',
    method:"post",
    data
  })
}
//  禁用启用
export const subjectStatus=(data)=>{

return request({
  url:"/subject/status",
  method:'post',
  data

})

}
